package com.honour.service.interfaced.impl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.honour.service.interfaced.ServerInManager;
import com.system.dao.DaoSupport;
import com.system.util.PageData;

/** 
 * 说明： 荣耀服务
 * 创建人：zhaozhaohua
 * 创建时间：2017-11-23
 * @version
 */
@Service("serverinService")
public class ServerInService implements ServerInManager{

	@Resource(name = "daoSupport")
	private DaoSupport dao;
	
	
	/**列表(全部)
	 * @param pd
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	public List<PageData> listAll(PageData pd)throws Exception{
		return (List<PageData>)dao.findForList("ServerInMapper.listAll", pd);
	}


	/**获取荣耀服务详情列表接口
	 * @param pd
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getServerDetailList(PageData pd) throws Exception {
		return (List<PageData>)dao.findForList("ServerInMapper.findById", pd);
	}
	
	/**获取荣耀服务详情列表接口
	 * @param pd
	 * @throws Exception
	 */
	@Override
	public PageData getServerById(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.findServerById", pd);
	}


	/**获取用户和高尔夫店的地理坐标 
	 * @param pd
	 * @throws Exception
	 */
	@Override
	public PageData getUserGolfDist(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.userGolfDist", pd);
	}


	/**获取用户和马术店的地理坐标
	 * @param pd
	 * @throws Exception
	 */
	@Override
	public PageData getUserHorseDist(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.userHorseDist", pd);
	}


	/**获取用户和豪车店的地理坐标
	 * @param pd
	 * @throws Exception
	 */
	@Override
	public PageData getUserLuxCarDist(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.userLuxCarDist", pd);
	}


	/**获取用户和飞机店的地理坐标
	 * @param pd
	 * @throws Exception
	 */
	@Override
	public PageData getUserPlaneDist(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.userPlaneDist", pd);
	}


	/**获取用户和游艇店的地理坐标
	 * @param pd
	 * @throws Exception
	 */
	@Override
	public PageData getUserYachtDist(PageData pd) throws Exception {
		return (PageData) dao.findForObject("ServerInMapper.userYachtDist", pd);
	}


	/**获取所有的高尔夫店铺列表(全部)
	 * @param pd
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getListGolfAll(PageData pd) throws Exception {
		return (List<PageData>)dao.findForList("ServerInMapper.listGolfAll", pd);
	}


	/**通过高尔夫店的ID获取详情数据 
	 * @param pd
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getByGolfDetId(PageData pd) throws Exception {
		return (List<PageData>)dao.findForList("ServerInMapper.findByGolfDetId", pd);
	}


	/**获取所有的马术店铺列表(全部) 
	 * @param pd
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getListHorseAll(PageData pd) throws Exception {
		return (List<PageData>)dao.findForList("ServerInMapper.listHorseAll", pd);
	}


	/**通过马术店的ID获取详情数据
	 * @param pd
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getByHorseDetId(PageData pd) throws Exception {
		return (List<PageData>)dao.findForList("ServerInMapper.findByHorseDetId", pd);
	}


	/**获取所有的豪车店铺列表(全部)
	 * @param pd
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getListLuxCarAll(PageData pd) throws Exception {
		return (List<PageData>)dao.findForList("ServerInMapper.listLuxCarAll", pd);
	}


	/**通过豪车店的ID获取详情数据 
	 * @param pd
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getByLuxCarDetId(PageData pd) throws Exception {
		return (List<PageData>)dao.findForList("ServerInMapper.findByLuxCarDetId", pd);
	}


	/**获取所有的飞机店铺列表(全部)
	 * @param pd
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getListPlaneAll(PageData pd) throws Exception {
		return (List<PageData>)dao.findForList("ServerInMapper.listPlaneAll", pd);
	}


	/**通过飞机店的ID获取详情数据
	 * @param pd
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getByPlaneDetId(PageData pd) throws Exception {
		return (List<PageData>)dao.findForList("ServerInMapper.findByPlaneDetId", pd);
	}


	/**获取所有的游艇店铺列表(全部)
	 * @param pd
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getListYachtAll(PageData pd) throws Exception {
		return (List<PageData>)dao.findForList("ServerInMapper.listYachtAll", pd);
	}


	/**通过游艇店的ID获取详情数据 
	 * @param pd
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getByYachtDetId(PageData pd) throws Exception {
		return (List<PageData>)dao.findForList("ServerInMapper.findByYachtDetId", pd);
	}


	/**通过游艇店的ID获取详情数据 
	 * @param pd
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getServerByGolfId(PageData pd) throws Exception {
		return (List<PageData>)dao.findForList("ServerInMapper.getServerByGolfId", pd);
	}


	/**通过马术的ID获取服务详情
	 * @param pd
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getServerByHorseId(PageData pd) throws Exception {
		return (List<PageData>)dao.findForList("ServerInMapper.getServerByHorseId", pd);
	}


	/**通过游艇店的ID获取详情数据 
	 * @param pd
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getServerByLuxCarId(PageData pd) throws Exception {
		return (List<PageData>)dao.findForList("ServerInMapper.getServerByLuxCarId", pd);
	}


	/**通过飞机的ID获取服务详情
	 * @param pd
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getServerByPlaneId(PageData pd) throws Exception {
		return (List<PageData>)dao.findForList("ServerInMapper.getServerByPlaneId", pd);
	}


	/**通过游艇的ID获取服务详情 
	 * @param pd
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getServerByYachtId(PageData pd) throws Exception {
		return (List<PageData>)dao.findForList("ServerInMapper.getServerByYachtId", pd);
	}


	/**
	 * 获取游艇等处的按钮信息
	 */
	@Override
	public PageData getButtonInfo(PageData pd) throws Exception {
		return (PageData)dao.findForObject("ButtonInfoInMapper.getButtonInfo", pd);
	}


	/**
	 * 获取游艇等处的按钮
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> getButtonList(PageData pd) throws Exception {
		return (List<PageData>)dao.findForList("ButtonInfoInMapper.getButtonList", pd);
	}
	
}

